/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufpr.tads.Rent.view;

import br.ufpr.tads.Rent.controller.Automovel;
import br.ufpr.tads.Rent.controller.EnumClass.*;
import br.ufpr.tads.Rent.controller.Motocicleta;
import br.ufpr.tads.Rent.view.Tela;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.SQLException;
import java.util.Calendar;




/**
 *
 * @author G0006185
 */
public class Rent {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException, ClassNotFoundException, FileNotFoundException, SQLException {
 
        new Tela().setVisible(true);


        
            //Automovel auto = new Automovel(); 
            //Motocicleta moto = new Motocicleta();
            //VeiculoDAO V = new VeiculoDAO();
            //System.out.println(auto.getValorDiariaLocacao(1));
            //int m =1;
           //System.out.println(ModeloAutomovel.values()[0]);
            //ModeloAutomovel a = auto.getModelo(1);
            //System.out.println(a.getNome());
            //System.out.println(a.getKey());
             /*int ano = auto.getAno(2);
             Calendar cal = Calendar.getInstance();
             int year = cal.get(Calendar.YEAR);
             System.out.println(year-ano);*/
            // System.out.println(auto.getValorParaVenda(1));
           // System.out.println(moto.getValorDiariaLocacao(1));
            
            
            /* try {
            Scanner sc = new Scanner(System.in,"ISO-8859-1");
            VeiculoDTO veiculodto = new VeiculoDTO();
            Veiculo veiculo = new Automovel();
            System.out.println("Informe a marca");
            veiculodto.setMarca(sc.nextInt());
            System.out.println("Informe a Categoria");
            veiculodto.setCategoria(sc.nextInt());
            System.out.println("Informe o valor de compra");
            veiculodto.setValorCompra(sc.nextDouble());
            System.out.println("Informe o ano");
            veiculodto.setAno(sc.next());
            System.out.println("Informe a Placa");
            veiculodto.setPlaca(sc.next());
            System.out.println("Informe a Modelo");
            veiculodto.setModelo(sc.next());
            veiculo.adicionaVeiculo(veiculodto);
            System.out.println("It's Works");
            } catch (IOException | ClassNotFoundException | SQLException ex) {
            System.out.println("Error:"+ ex.getMessage());
            }*/
     
        
    }
}
